package org.mclll.xwangplugin.config;

import org.bukkit.configuration.file.YamlConfiguration;
import org.mclll.xwangplugin.resourcePack.NetWork;
import org.mclll.xwangplugin.resourcePack.config.PackConfig;

import java.io.File;

/**
 * @author llB
 * @date 2024-06-15 21:46
 * @description todo
 */
public class GlobalConfig {
    public static String CONFIG_FILE_NAME = "globalConfig.yml";
    public static YamlConfiguration CONFIG;

    public static void init(File dataFolder) {
        CONFIG = YamlConfiguration.loadConfiguration(new File(dataFolder, CONFIG_FILE_NAME));
        // 材质包配置
        NetWork.BASE_URL = PackConfig.getBaseUrl();
    }
}
